﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NPMonitor.Utility
{
    public sealed class BrowserType
    {
        public const string IE = "IE";
        public const string FF = "FF";
        public const string Chrome = "Chrome";

        public static string GetWebBrowserProcessName(string browserType)
        {
            string processName = null;

            switch (browserType)
            {
                case BrowserType.FF:
                    processName = "firefox";
                    break;
                case BrowserType.Chrome:
                    processName = "chrome";
                    break;
                case BrowserType.IE:
                    processName = "iexplore";
                    break;
            }

            return processName;
        }

        public static string GetWebDriverProcessName(string browserType)
        {
            string processName = null;

            switch (browserType)
            {
                case BrowserType.Chrome:
                    processName = "chromedriver";
                    break;
                case BrowserType.IE:
                    processName = "IEDriverServer";
                    break;
            }

            return processName;
        }
    }
}
